package com.wyk.service;

import com.wyk.domain.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author WangYuKai
 * @Date 2022/8/4
 * @apiNote
 */
@FeignClient(name = "serata-storage-service")
@Component
public interface StrorageService {
    //减少库存
    @PostMapping(value = "/storage/decrease")
    CommonResult decrease(@RequestParam("productId")Long productId, @RequestParam("count")Integer count);
}
